﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    
    xmlns:ext="clr-namespace:System.Windows.Extensions;assembly=Chrome"
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="Emessenger.ContactListe"
    Title="ContactListe" Height="475" Width="339"
    
    Background="Transparent" Icon="Images/EspriTalk.png"
    mc:Ignorable="d" 
    >

    <!--supprime la bordure de la fenetre -->
    <ext:WindowChrome.WindowChrome>
        <ext:WindowChrome
          ClientBorderThickness="-1" />
    </ext:WindowChrome.WindowChrome>


    <Grid>
        <!--arrandir les coins -->
        <Rectangle RadiusX="10" RadiusY="10">
            <Rectangle.Fill>
                <ImageBrush ImageSource="/Images/Background.jpg" Stretch="UniformToFill" />
            </Rectangle.Fill>

            <!--donner l'aspect transparant-->
            <Rectangle.OpacityMask>
                <LinearGradientBrush StartPoint="0,1" EndPoint="0,0">
                    <GradientStop Offset="0.5" Color="Blue"/>
                    <GradientStop Offset="0.9" Color="Transparent"/>
                </LinearGradientBrush>
            </Rectangle.OpacityMask>
        </Rectangle>


        <ListBox Margin="14,122,12,46" x:Name="listBox1" MouseDoubleClick="choisirContact" Opacity="0.7" BorderBrush="Yellow" >

            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu HorizontalAlignment="Right"  x:Name="radContextMenu1"  ItemClick="ContextMenuClick" ><!--Opened="ContextMenuOpened" -->
                    <telerik:RadMenuItem  Header="Supprimer"/>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>

        </ListBox>
        <!--BorderBrush="Transparent" elle permet de supprimer la bordure-->
        <Image HorizontalAlignment="Left" Margin="21,54,0,0" VerticalAlignment="Top" Width="32" Height="32" Source="Images/Bouttons/Friend_add.png" Stretch="Fill" RenderTransformOrigin="-0.5,-0.062" MouseLeftButtonDown="friend_add" ToolTip="Ajouter nouveau contact" />
        <Image HorizontalAlignment="Left" Margin="59,53,0,0" VerticalAlignment="Top" Width="36" Height="34" Source="Images/Bouttons/users_comments.png" Stretch="Fill" RenderTransformOrigin="0.156,0.125" MouseLeftButtonDown="ChatRoom_connect" ToolTip="rejoindre une salle de conférence"/>
        <Image HorizontalAlignment="Left" Margin="275,56,0,0" VerticalAlignment="Top" Width="32" Height="32" Source="Images/Bouttons/notebook_edit.png" Stretch="Fill"/>



        <ComboBox Height="23" Margin="14,94,0,0" x:Name="comboBox1" VerticalAlignment="Top" Text="" SelectedIndex="0" BorderBrush="Transparent" Background="Transparent" SelectionChanged="changer_statut" HorizontalAlignment="Left" Width="151">
            <ComboBoxItem>
                <StackPanel Orientation="Horizontal">

                    <Image Source="/Statuts/status_online.png" />
                    <TextBlock  ><Run Text="Available"/></TextBlock>
                </StackPanel>
            </ComboBoxItem>
            <ComboBoxItem>
                <StackPanel Orientation="Horizontal">

                    <Image Source="/Statuts/status_online.png" />
                    <TextBlock  ><Run Text="Free For Chat"/></TextBlock>
                </StackPanel>
            </ComboBoxItem>

            <ComboBoxItem>
                <StackPanel Orientation="Horizontal">

                    <Image Source="/Statuts/status_away.png" />
                    <TextBlock  ><Run Text="Away"/></TextBlock>
                </StackPanel>
            </ComboBoxItem>
            <ComboBoxItem>
                <StackPanel Orientation="Horizontal">

                    <Image Source="/Statuts/status_away.png" />
                    <TextBlock  ><Run Text="Extended Away"/></TextBlock>
                </StackPanel>
            </ComboBoxItem>
            <ComboBoxItem>
                <StackPanel Orientation="Horizontal">

                    <Image Source="/Statuts/DoNotDisrt.png" />
                    <TextBlock ><Run Text="Do Not Disturb"/></TextBlock>
                </StackPanel>
            </ComboBoxItem>
            <ComboBoxItem>
                <StackPanel Orientation="Horizontal">

                    <Image Source="/Statuts/offline.png" />
                    <TextBlock ><Run Text="Invisible"/></TextBlock>
                </StackPanel>
            </ComboBoxItem>

        </ComboBox>
        <Image HorizontalAlignment="Left" Margin="108,54,0,0" VerticalAlignment="Top" Width="32" Height="32" Source="Images/folder_down.png" Stretch="Fill" RenderTransformOrigin="0.156,0.438" MouseLeftButtonDown="ouvrir_dossier"/>
        <ProgressBar Height="16" Margin="14,0,12,15" x:Name="progressBar1" VerticalAlignment="Bottom" Visibility="Hidden" />
    	<Image Margin="149.5,52,141.5,0" Source="Images/Stroke - Cyan.png" Stretch="Fill" VerticalAlignment="Top" Height="32" Visibility="Hidden"/>
    	<Image Margin="149.5,52,141.5,0" x:Name="Notif"   Source="Images/Background - Cyan.png" Stretch="Fill" VerticalAlignment="Top" Height="32" Width="32"/>
    	<Label Margin="158,52,135.5,0" Name="notifCount" Visibility="Hidden" VerticalAlignment="Top" Content="1" Background="#007C5858" FontSize="13.333" FontWeight="Bold" d:LayoutOverrides="Width" FontFamily="Showcard Gothic" Height="26.503" />
    </Grid>
</Window>
